import {
	http
} from '@/utils/request.js'

// 登录
export function login(obj) {
	return http({
		url: '/CHousekeeper/loginPlatformApp',
		data: obj,
		method: 'post'
	})
}

// 首页
export function queryHomePagePlatformApp(obj) {
	return http({
		url: '/CHousekeeper/queryHomePagePlatformApp',
		data: obj,
		method: 'get'
	})
}

// 我的客户
export function queryCustomerByPlatformApp(obj) {
	return http({
		url: '/CCustomer/queryCustomerByPlatformApp',
		method: 'get',
		data: obj
	})
}

// 客户生日
export function queryPageByBirthyByPlatformApp(obj) {
	return http({
		url: '/CCustomer/queryPageByBirthyByPlatformApp',
		method: 'get',
		data: obj
	})
}

// 提成管理
export function queryPageByPlatformApp(obj) {
	return http({
		url: '/CHousekeeperCommission/queryPageByPlatformApp',
		method: 'get',
		data: obj
	})
}

// 提成详情
export function queryOrderDetailByPlatformApp(obj) {
	return http({
		url: '/COrder/queryOrderDetailByPlatformApp',
		method: 'get',
		data: obj
	})
}


// 服务订单列表
export function queryServerPageByPlatformApp(obj) {
	return http({
		url: '/COrder/queryServerPageByPlatformApp',
		method: 'get',
		data: obj
	})
}


// 客户预约
export function queryReserveOrderPageByPlatformsApp(obj) {
	return http({
		url: '/COrder/queryReserveOrderPageByPlatformsApp',
		method: 'get',
		data: obj
	})
}


// 预约详情
export function queryReserveOrderDetailPageByPlatformsApp(obj) {
	return http({
		url: '/COrder/queryReserveOrderDetailPageByPlatformsApp',
		method: 'get',
		data: obj
	})
}

// 预约回复
export function updateReserveOrderDetailByPlatformsApp(obj) {
	return http({
		url: '/COrder/updateReserveOrderDetailByPlatformsApp',
		method: 'post',
		data: obj
	})
}

// 我的咖啡券
export function queryCouponByPlatformApp(obj) {
	return http({
		url: '/CCoupon/queryCouponByPlatformApp',
		method: 'get',
		data: obj
	})
}

// 商品列表
export function queryPageSearchByPlatformApp(obj) {
	return http({
		url: '/CProduct/queryPageSearchByPlatformApp',
		method: 'post',
		data: obj
	})
}

// 购物车
export function generateShopCarOrder(obj) {
	return http({
		url: '/COrder/generateShopCarOrderPlatformApp',
		method: 'get',
		data: obj
	})
}

// 加入购物车
export function updateShopCarPlatformApp(obj) {
	return http({
		url: '/COrder/updateShopCarPlatformApp',
		method: 'post',
		data: obj
	})
}

// 生成订单
export function generateOrderByPlatformApp(obj) {
	return http({
		url: '/COrder/generateOrderByPlatformApp',
		method: 'post',
		data: obj
	})
}

export function queryPageSearchByHotPlatformApp(obj) {
	return http({
		url: '/CProduct/queryPageSearchByHotPlatformApp',
		method: 'post',
		data: obj
	})
}

export function queryByDetailByApp(obj) {
	return http({
		url: '/CProduct/queryByDetailByApp',
		method: 'get',
		data: obj
	})
}


export function queryPriceChangeOrderPageByPlatformApp(obj) {
	return http({
		url: '/COrder/queryPriceChangeOrderPageByPlatformApp',
		method: 'get',
		data: obj
	})
}

export function changePriceSucess(data) {
	return http({
		url: "/COrder/changePriceSucessByPlatformApp",
		method: "POST",
		data: data
	})
}

export function changePriceConfuse(data) {
	return http({
		url: "/COrder/changePriceConfuseByPlatformApp",
		method: "POST",
		data: data
	})
}

export function queryUsedCouponPage(data) {
	return http({
		url: "/CCoupon/queryUsedCouponPage",
		method: "POST",
		data: data
	})
}

export function queryListByCoffee(data) {
	return http({
		url: "/CCustomer/queryList",
		method: "GET",
		data: data
	})
}

export function saveWriteOff(data) {
	return http({
		url: "/CCoupon/writeOff",
		method: "POST",
		data: data
	})
}

export function countOrderAndCustomerformApp(data) {
	return http({
		url: "/report/countOrderAndCustomerformApp",
		method: "GET",
		data: data
	})
}

export function countOrdersLastSevenDaysformApp(data) {
	return http({
		url: "/report/countOrdersLastSevenDaysformApp",
		method: "GET",
		data: data
	})
}

export function sumActuallyAmountLastSevenDaysformApp(data) {
	return http({
		url: "/report/sumActuallyAmountLastSevenDaysformApp",
		method: "GET",
		data: data
	})
}

export function countCustomerLastSevenDaysfromApp(data) {
	return http({
		url: "/report/countCustomerLastSevenDaysfromApp",
		method: "GET",
		data: data
	})
}

export function setConsumptionStautsformApp(data) {
	return http({
		url: "/COrder/setConsumptionStautsformApp",
		method: "POST",
		data: data
	})
}